/**
 * @author liangxi
 * @since 2023/12/21
 */

#ifndef DESIGNPATTERN_MENUITEM_H
#define DESIGNPATTERN_MENUITEM_H

#include <string>

namespace Iterator::Transition {

    class MenuItem {
    public:
        MenuItem(const std::string &name, const std::string &description, bool vegetarian, double price) : name(
                name), description(description), vegetarian(vegetarian), price(price) {}

        [[nodiscard]] std::string getName() const { return name; }

        [[nodiscard]] std::string getDescription() const {
            return description;
        }

        [[nodiscard]] bool getVegetarian() const {
            return vegetarian;
        }

        [[nodiscard]] double getPrice() const {
            return price;
        }

    private:
        std::string name;
        std::string description;
        bool vegetarian;
        double price;
    };

} // Transition

#endif //DESIGNPATTERN_MENUITEM_H
